#!/bin/sh
# @command: ./create-vm.sh hieulq abc /home/hieulq/Template/fakevm01
# @output:
# none

user=$1
vmname=$2
templatePath=$3

#### Set common environment variables
. ${0%/*}/options.list
####

$ScriptDir/copy-cert.sh $user

mkdir -p /tmp/$user

cp $templatePath /tmp/$user/$vmname 

$NimbusClient./bin/cloud-client.sh --transfer --sourcefile /tmp/$user/$vmname

rm /tmp/$user/$vmname
